| 411 | $replacearray[] = '[attach]'.$db->insert_id().'[/attach]'; | = | 411 | $replacearray[] = '[attach]'.$db->insert_id().'[/attach]'; |
| 412 | } | 412 | } | |
| 413 | $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message)); | 413 | $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message)); | |
| 414 | $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'"); | 414 | $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'"); | |
| 415 | updatecredits($discuz_uid, $postattachcredits, count($attachments)); | 415 | updatecredits($discuz_uid, $postattachcredits, count($attachments)); | |
| 416 | } | 416 | } | |
| 417 | /* add for wiki */ | <> | ||
| 418 | if($wiki_flash==1){ | |||
| 419 | $tids[]=$tid; | |||
| 420 | require DISCUZ_ROOT.'./include/wikipost.inc.php'; | |||
| 421 | } | 417 | ||
| 422 | if($modnewthreads) { | = | 418 | if($modnewthreads) { |
| 423 | $db->query("UPDATE {$tablepre}forums SET todayposts=todayposts+1 WHERE fid='$fid'", 'UNBUFFERED'); | 419 | $db->query("UPDATE {$tablepre}forums SET todayposts=todayposts+1 WHERE fid='$fid'", 'UNBUFFERED'); | |
| 424 | showmessage('post_newthread_mod_succeed', "forumdisplay.php?fid=$fid"); | 420 | showmessage('post_newthread_mod_succeed', "forumdisplay.php?fid=$fid"); | |
| 425 | } else { | 421 | } else { | |
| 426 | 422 | |||
| 427 | $feed = array( | 423 | $feed = array( |
(约在416行)
updatecredits($discuz_uid, $postattachcredits, count($attachments));
}
(下面加入)
/* add for wiki */
if($wiki_flash==1){
$tids[]=$tid;
require DISCUZ_ROOT.'./include/wikipost.inc.php';
}